package com.qdlc.p2p.dal.model;

import org.springframework.beans.BeanUtils;

import com.qdlc.p2p.dal.dto.AdditionalUserDrawLottery;

/**
 * Created by liaoxiangkai on 2015/11/26.
 */
public class AdditionalUserDrawLotteryModel extends AdditionalUserDrawLottery {
    //用户名
    private String userName;
    //用户真实姓名
    private String realName;
    //规则名称
    private String ruleName;
    //搜索框输入字符串
    private String searchName;
    //当前页
    private int page;
    //每页记录数
    private int rows;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public String getSearchName() {
        return searchName;
    }

    public void setSearchName(String searchName) {
        this.searchName = searchName;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }


    /**
     * 实例化
     *
     * @param additionalUserDrawLottery
     * @return AdditionalUserDrawLotteryModel
     */
    public static AdditionalUserDrawLotteryModel instance(AdditionalUserDrawLottery additionalUserDrawLottery) {
        AdditionalUserDrawLotteryModel model = new AdditionalUserDrawLotteryModel();
        BeanUtils.copyProperties(additionalUserDrawLottery, model);
        return model;
    }


}
